//
//  APDeleteAndEditPhotoViewController.h
//  APlan
//
//  Created by he15his on 14/10/20.
//  Copyright (c) 2014年 jingling. All rights reserved.
//

#import <JFBase/JFBase.h>

@protocol SLDeleteAndEditPhotoViewControllerDelegate <NSObject>

- (void)popWithThumbImages:(NSMutableArray *)thumbImages urls:(NSMutableArray *)urls;
@end
/**
 *  删除和编辑选择的viewcontroller
 */
@interface SLDeleteAndSelectPhotoViewController : JFBaseViewController

/**
 *  发图片时的预览界面(可删除)
 *
 *  @param thumbImages       缩略图
 *  @param hdImages          高清图片
 *  @param urls              图片地址
 *  @param currentImageIndex 当前图片是第几张
 *  @param delegate          回调代理
 *
 */
- (instancetype)initDeleteModelWithThumbImages:(NSMutableArray *)thumbImages
                                          urls:(NSMutableArray *)urls
                             currentImageIndex:(NSInteger)currentImageIndex
                                      delegate:(id<SLDeleteAndEditPhotoViewControllerDelegate>)delegate;

/**
 *  图片库内的预览(可选择)
 *
 *  @param allAssets         所有图片
 *  @param selectAssets      选中的图片
 *  @param currentImageIndex 当前第几张
 *  @param thumbImages       缩略图(用于排重,可不传)
 *  @param hdImages          高清图片(用于排重,可不传)
 *  @param urls              图片地址(用于排重,可不传)
 *
 */
- (instancetype)initSelectModelWithAllAssets:(NSMutableArray *)allAssets
                                selectAssets:(NSMutableArray *)selectAssets
                           currentImageIndex:(NSInteger)currentImageIndex
                              maxImageNumber:(NSInteger)maxImageNumber
                                 thumbImages:(NSMutableArray *)thumbImages
                                    hdImages:(NSMutableArray *)hdImages
                                        urls:(NSMutableArray *)urls
                                    delegate:(id<SLDeleteAndEditPhotoViewControllerDelegate>)delegate;
@end
